<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<p>
	<c:if test="${not empty itemDistributedList}">
		<table border="1">
			<tr>
				<th>BILL NUMBER</th>
				<th>ITEM NAME</th>
				<th>NO. OF UNITS</th>
				<th>DENOMINATION</th>
				<th>MEASURING UNIT</th>
				<th>PRICE PER UNIT</th>
				<th>SUPPLIER</th>
				<th>TOTAL (TAXES EXCLUSIVE)</th>
				<th>TAXES</th>
				<th>TOTAL (TAXES INCLUSIVE)</th>
				<th>ADDED(MM/YYYY)</th>
				<th>ACTIONS</th>
			</tr>
			<c:forEach var="listValue" items="${itemDistributedList}">
				<tr>
					<td>${listValue.billNo}</td>
					<td>${listValue.item.itemName}</td>
					<td>${listValue.noOfUnits}</td>
					<td>${listValue.denomination.denominationName}</td>
					<td>${listValue.measuringUnit.measuringUnitValue}</td>
					<td>${listValue.pricePerUnit}</td>
					<td>${listValue.retailer.retailerName}</td>
					<td>${listValue.totalWithoutTax}</td>
					<td>${listValue.taxes}</td>
					<td>${listValue.grandTotal}</td> 
					<td>${listValue.month}/${listValue.year}</td>
					<td><a
						href="<%=request.getContextPath()%>/user/itemDistributed/editItemDistributed/${listValue.itemDistributedId}">EDIT</a>&nbsp;
								<span id="active"><a
									href="<%=request.getContextPath()%>/user/itemDistributed/deleteItemDistributed/${listValue.itemDistributedId}"
									id="action">DELETE</a></span>
					</td>
				</tr>
			</c:forEach>
		</table>
	</c:if>
</p>